package com.common.manager;

import org.springframework.stereotype.Component;

import com.framework.model.IData;


@Component
public class RoleInfoManager  extends BaseManager{
	
	@Override
	public void setSqlMapNameSpace() {
		this.sqlMapNameSpace = "com.common.security.model.RoleInfo";
	}
	
	
	/**
	 * 功能：删除和角色相关联的数据
	 * @param rmData
	 * @return 
	 */
	
	public int delAllRoleRelation(IData rmData){
		super.deleteObject("com.common.security.model.Role2Data", "deleteObject", rmData);
		super.deleteObject("com.common.security.model.Role2MenuFunc", "deleteObject", rmData);
		super.deleteObject("com.common.security.model.Role2Menu", "deleteObject", rmData);
		return super.deleteObject(rmData);
	}
	
}
